package com.weimob.mcloud.wechatwork.customer.service.user.base;

import lombok.Data;

/**
 * @Author liuzhu.chen
 * @Description
 * @Date 2022/8/17 11:20
 * @Version 1.0
 */
@Data
public class OpenApiRequest extends PageInfo {

    /**
     * --以下为openAPI使用字段--
     */

    /**
     * 授权商户账号wid
     */
    private Long bid;

    /**
     * 商户ID
     */
    private Long bosId;

    /**
     * 产品ID
     */
    private Long targetProductId;

    /**
     * 产品实例ID
     */
    private Long targetProductInstanceId;

    public BasicInfo convertToBasicInfo() {
        BasicInfo basicInfo = new BasicInfo();
        basicInfo.setBosId(this.getBosId());
        basicInfo.setProductId(this.getTargetProductId());
        basicInfo.setProductInstanceId(this.getTargetProductInstanceId());
        return basicInfo;
    }
}